<!DOCTYPE html>
<html lang="en" xmls:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>测试Thymeleaf</title>
</head>
<body>
    <h2>测试</h2>
    <h2 th:text="${msg}">显示信息</h2>
</body>
</html>